package com.youweather.sgg.test;

import com.youweather.sgg.ItemDetails;
import static org.junit.Assert.*;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class testItemDetails {
	String expected;
	ItemDetails id;

	@Before
	public void setUp() throws Exception {
		id = new ItemDetails();
	}

	@After
    public void tearDown() throws Exception {
	}

	@Test
	public void testSetCity() {
		expected = "Napoli";
		
		id.setCity("Napoli");
		assertEquals(id.getCity(),expected);
	}
	@Test
	public void testSetConditions() {
		expected = "Bel tempo!";
		
		id.setConditions("Bel tempo!");
		assertEquals(id.getConditions(),expected);
	}

	@Test
	public void testSetUser() {
		expected = "Francesco";
		
		id.setUser("Francesco");
		assertEquals(id.getUser(),expected);
	}

	@Test
	public void testSetTemperature() {
		expected = "13";
		
		id.setTemperature("13");
		assertEquals(id.getTemperature(),expected);
	}

}
